package com.atguigu.democustomer230301.mapper;

import com.atguigu.democustomer230301.bean.Customer;
import com.atguigu.democustomer230301.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    @Select("select * from customer where name=#{name}")
    public Customer selectCustomerByName(@Param("name") String na);

    @Select("${sql}")
    public Map selectCustomerById(@Param("sql") String sql);
}

